package parttern.expression;

public class OrExpression implements Expression {

    private Expression expressionA;
    private Expression expressionB;

    public OrExpression(Expression expressionA, Expression expressionB) {
        this.expressionA = expressionA;
        this.expressionB = expressionB;
    }

    @Override
    public boolean interrupt(String context) {
        return expressionA.interrupt(context) || expressionB.interrupt(context);
    }
}
